<?php

/**
 * Profile form.
 *
 * @package    trunk
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ProfileShippingForm extends ProfileForm
{
    public function configure()
    {
        $this->useFields(array(

                'shipping_address1',
                'shipping_city',
                'shipping_post_code',
                'shipping_country',
                'contact_person',
                'contact_phone',
                'delivery_time'
            )
        );
        $this->validatorSchema['shipping_address1'] = new sfValidatorString(array('max_length' => 255, 'required' => true));
        $this->validatorSchema['shipping_address2'] = new sfValidatorString(array('max_length' => 255, 'required' => false));
        $this->validatorSchema['shipping_city'] = new sfValidatorString(array('max_length' => 100, 'required' => true));
        $this->validatorSchema['shipping_post_code'] = new sfValidatorString(array('max_length' => 50, 'required' => true));
        $this->validatorSchema['shipping_country'] = new sfValidatorString(array('max_length' => 100, 'required' => true));
    }
}
